package hate.json.home;


import hate.model.home.*;
import io.ebean.EbeanServer;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class HomeRes {
        String code;

        //一下图片读书图片路径
    private List<Banner> banners;//banner的三张图片
    private List<ProCenter> proCenters;//产品中心 6张图片
    private List<AboutUs>  aboutUs;//关于我们  3张图片
    private List<TechnicalCore> technicalCore;//核心技术  6张图片
    private List<Footer> footer;//尾部的信息

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Banner> getBanners() {
        return banners;
    }

    public void setBanners(List<Banner> banners) {
        this.banners = banners;
    }

    public List<ProCenter> getProCenters() {
        return proCenters;
    }

    public void setProCenters(List<ProCenter> proCenters) {
        this.proCenters = proCenters;
    }

    public List<AboutUs> getAboutUs() {
        return aboutUs;
    }

    public void setAboutUs(List<AboutUs> aboutUs) {
        this.aboutUs = aboutUs;
    }

    public List<TechnicalCore> getTechnicalCore() {
        return technicalCore;
    }

    public void setTechnicalCore(List<TechnicalCore> technicalCore) {
        this.technicalCore = technicalCore;
    }

    public List<Footer> getFooter() {
        return footer;
    }

    public void setFooter(List<Footer> footer) {
        this.footer = footer;
    }
}

/**
 * 尾部信息
 */
class FooterRes{

    private String Phone;//公司电话
    private String fax;//公司传真
    private String QRCode1;//微信二维码1
    private String qRCode2;//微信二维码2
    private String szAdress;//苏州工厂地址
    private String ycAdress;//盐城工厂地址
    private String shAdress;//上海公司地址

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String phone) {
        Phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getQRCode1() {
        return QRCode1;
    }

    public void setQRCode1(String QRCode1) {
        this.QRCode1 = QRCode1;
    }

    public String getqRCode2() {
        return qRCode2;
    }

    public void setqRCode2(String qRCode2) {
        this.qRCode2 = qRCode2;
    }

    public String getSzAdress() {
        return szAdress;
    }

    public void setSzAdress(String szAdress) {
        this.szAdress = szAdress;
    }

    public String getYcAdress() {
        return ycAdress;
    }

    public void setYcAdress(String ycAdress) {
        this.ycAdress = ycAdress;
    }

    public String getShAdress() {
        return shAdress;
    }

    public void setShAdress(String shAdress) {
        this.shAdress = shAdress;
    }
}

class TechnicalCoreRes{
    private String path1;
    private String path2;
    private String path3;
    private String path4;
    private String path5;
    private String path6;

    public String getPath1() {
        return path1;
    }

    public void setPath1(String path1) {
        this.path1 = path1;
    }

    public String getPath2() {
        return path2;
    }

    public void setPath2(String path2) {
        this.path2 = path2;
    }

    public String getPath3() {
        return path3;
    }

    public void setPath3(String path3) {
        this.path3 = path3;
    }

    public String getPath4() {
        return path4;
    }

    public void setPath4(String path4) {
        this.path4 = path4;
    }

    public String getPath5() {
        return path5;
    }

    public void setPath5(String path5) {
        this.path5 = path5;
    }

    public String getPath6() {
        return path6;
    }

    public void setPath6(String path6) {
        this.path6 = path6;
    }
}

/**
 * 关于我们
 */
class AboutUsRes {
    private String path1;
    private String path2;
    private String path3;

    @Autowired
    private EbeanServer ebeanServer;
    public AboutUsRes(){
        ebeanServer.find(AboutUs.class).findList();

    }
    public String getPath1() {
        return path1;
    }

    public void setPath1(String path1) {
        this.path1 = path1;
    }

    public String getPath2() {
        return path2;
    }

    public void setPath2(String path2) {
        this.path2 = path2;
    }

    public String getPath3() {
        return path3;
    }

    public void setPath3(String path3) {
        this.path3 = path3;
    }
}

/**
 * 产品中心
 */
    class ProCenterRes{
        private String path1;
        private String path2;
        private String path3;
        private String path4;
        private String path5;
        private String path6;

        public String getPath1() {
            return path1;
        }

        public void setPath1(String path1) {
            this.path1 = path1;
        }

        public String getPath2() {
            return path2;
        }

        public void setPath2(String path2) {
            this.path2 = path2;
        }

        public String getPath3() {
            return path3;
        }

        public void setPath3(String path3) {
            this.path3 = path3;
        }

        public String getPath4() {
            return path4;
        }

        public void setPath4(String path4) {
            this.path4 = path4;
        }

        public String getPath5() {
            return path5;
        }

        public void setPath5(String path5) {
            this.path5 = path5;
        }

        public String getPath6() {
            return path6;
        }

        public void setPath6(String path6) {
            this.path6 = path6;
        }
    }

/**
 * banner 上面的三个图片路径
 */
class BannerFilePathsRes{
    private String path1;
    private String path2;
    private String path3;

        public String getPath1() {
            return path1;
        }

        public void setPath1(String path1) {
            this.path1 = path1;
        }

        public String getPath2() {
            return path2;
        }

        public void setPath2(String path2) {
            this.path2 = path2;
        }

        public String getPath3() {
            return path3;
        }

        public void setPath3(String path3) {
            this.path3 = path3;
        }
    }

